using System;
using System.Collections.Generic;
using System.Text;

namespace TaugeLibrary.Classes
{
    public class GeneralEventArgs
    {
        #region memvar
        int integer_val;
        string string_val;
        bool bool_val;
        DateTime date_val;
        #endregion

        #region properties
        public string StringValue { get { return string_val; } }
        public int IntegerValue { get { return integer_val; } }
        public bool BooleanValue { get { return bool_val; } }
        public DateTime DateValue { get { return date_val; } }
        #endregion


        #region constructor
        public GeneralEventArgs(int i, string s, bool b, DateTime d)
        {
            integer_val = i;
            string_val = s;
            bool_val = b;
            date_val = d;
        }

        public GeneralEventArgs(string s) : this(0, s, false, DateTime.MinValue) { }
        public GeneralEventArgs(int i) : this(i, "", false, DateTime.MinValue) { }
        public GeneralEventArgs(int i, string s) : this(i, s, false, DateTime.MinValue) { }
        #endregion
    }

    public delegate void GeneralEventHandler(object sender, GeneralEventArgs e);
}
